/* 
 * 应用表单校验相关配置
 * 依赖：graceChecker.js 进行校验
 * 
 * 使用：引入该js到页面，let res = graceChecker.check({phoneNo:"",code:""},formRule.loginRule)
 */

export default {
	/* 用户登录 */
	loginRule: [
		{name: "username",checkType: "notnull",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "username",checkType: "phoneno",checkRule: "",errorMsg: "手机号格式不正确"},
		{name: "password",checkType: "notnull",checkRule: "",errorMsg: "密码不能为空"},
	],
	
	/* 发送验证码验证手机号 */
	sendCodeRule: [
		{name: "username",checkType: "notnull",checkRule: "",errorMsg: "手机号不能为空"},
		{name: "username",checkType: "phoneno",checkRule: "",errorMsg: "手机号格式不正确"},
	],
	
	/* 验证码登录 */
	loginCodeRule: [
		{name: "username",checkType: "notnull",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "username",checkType: "phoneno",checkRule: "",errorMsg: "手机号格式不正确"},
		{name: "code",checkType: "notnull",checkRule: "6",errorMsg: "验证码不能为空"},
	],
	
	/* 修改密码 */
	passWordRule: [
		{name: "oldPwd",checkType: "notnull",checkRule: "",errorMsg: "请输入旧密码"},
		{name: "newPwd01",checkType: "notnull",checkRule: "",errorMsg: "请输入新密码"},
		{name: "newPwd",checkType: "notnull",checkRule: "",errorMsg: "新密码不能为空"},
	],
	//添加新密码
	passWordRuleNew: [
		{name: "newPwd01",checkType: "notnull",checkRule: "",errorMsg: "请输入新密码"},
		{name: "newPwd",checkType: "notnull",checkRule: "",errorMsg: "新密码不能为空"},
	],
	/*添加订单第一个模板*/
	orderRule01:[
		{name: "basicBorrowerName",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人姓名"},
		{name: "basicBorrowerCard",checkType: "notnull",checkRule: "",errorMsg: "请输入身份证号码"},
		{name: "basicBorrowerCard",checkType: "idcard",checkRule: "",errorMsg: "请输入正确的身份证号码"},
		{name: "basicBorrowerPhone",checkType: "notnull",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "basicBorrowerPhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "basicBorrowerAddress",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人现住地址"},
		{name: "basicLoansMoney",checkType: "notnull",checkRule: "",errorMsg: "请输入申请金额"}
	],
	/*添加订单第二个模板*/
	orderRule02:[
		{name: "basicBorrowerName",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人姓名"},
		{name: "basicBorrowerCard",checkType: "notnull",checkRule: "",errorMsg: "请输入身份证号码"},
		{name: "basicBorrowerCard",checkType: "idcard",checkRule: "",errorMsg: "请输入正确的身份证号码"},
		{name: "basicBorrowerPhone",checkType: "notnull",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "basicBorrowerPhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "basicBorrowerAddress",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人现住地址"},
	],
	/*添加订单第三个模板*/
	orderRule03:[
		{name: "basicBorrowerName",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人姓名"},
		{name: "basicBorrowerCard",checkType: "notnull",checkRule: "",errorMsg: "请输入身份证号码"},
		{name: "basicBorrowerCard",checkType: "idcard",checkRule: "",errorMsg: "请输入正确的身份证号码"},
		{name: "basicBorrowerPhone",checkType: "notnull",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "basicBorrowerPhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入手机号码"},
	],
	//添加法拍房
	orderFapai:[
		{name: "basicBorrowerName",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人姓名"},
		{name: "basicBorrowerPhone",checkType: "notnull",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "basicBorrowerPhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入手机号码"},
	],
	//赚钱分享社区添加文章
	addForum:[
		{name: "releaseTitle",checkType: "notnull",checkRule: "",errorMsg: "请输入标题"},
		{name: "releaseContent",checkType: "notnull",checkRule: "",errorMsg: "请输入正文"},
	],
	//法拍房
	fafRule:[
		{name: "basicBorrowerName",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人姓名"},
		{name: "basicBorrowerCard",checkType: "idcard",checkRule: "",errorMsg: "请输入身份证号码"},
		{name: "basicBorrowerPhone",checkType: "phoneno",checkRule: "",errorMsg: "请输入手机号码"},
		{name: "basicBorrowerAddress",checkType: "notnull",checkRule: "",errorMsg: "请输入申请人现住地址"},
		{name: "acceptTime",checkType: "notnull",checkRule: "",errorMsg: "请选择受理时间"}
	],
	//创建团队信息
	creatTeamRule:[
		{name: "teamName",checkType: "notnull",checkRule: "",errorMsg: "请输入团队名字"},
		{name: "brief",checkType: "notnull",checkRule: "",errorMsg: "请输入团队简介"},
		{name: "la",checkType: "notnull",checkRule: "",errorMsg: "请选择团队地址"},
		{name: "address",checkType: "notnull",checkRule: "",errorMsg: "请输入详细地址"}
	],
	//添加银行卡
	addBankRule:[
		{name: "name",checkType: "notnull",checkRule: "",errorMsg: "请填写持卡人姓名"},
		{name: "bankNum",checkType: "notnull",checkRule: "",errorMsg: "请填写银行卡卡号"},
		{name: "tid",checkType: "notnull",checkRule: "",errorMsg: "请选择银行卡类型"},
	],
	addBankRuleTwo:[
		{name: "name",checkType: "notnull",checkRule: "",errorMsg: "请填写持卡人姓名"},
		{name: "bankNum",checkType: "notnull",checkRule: "",errorMsg: "请填写银行卡卡号"},
		{name: "tid",checkType: "notnull",checkRule: "",errorMsg: "请选择银行卡类型"},
		{name: "bankName",checkType: "notnull",checkRule: "",errorMsg: "请填写银行卡归属银行"}
	],
	//提现申请
	mineExtract:[
		{name: "bid",checkType: "notnull",checkRule: "",errorMsg: "请选择银行卡"},
		{name: "sumBalance",checkType: "notnull",checkRule: "",errorMsg: "请填写提现金额"},
	],
}